package com.qf.auth.feign;

import com.qf.common.bean.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 千锋健哥
 */
@FeignClient(name = "qf-center-data")
public interface CheckCodeFeign {

    @PostMapping("/data/checkCode/saveCode")
    public R saveRedis(@RequestParam String phone, @RequestParam String code);

    @GetMapping("/data/checkCode/getCode/{phone}")
    public R getCode(@PathVariable(value = "phone") String phone);
}
